package com.kefu.exam.model;

import java.io.Serializable;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;

/**
 * @author xy
 * @date 2022/02/28
 */
@Data
@TableName(value="exam_subject")
@ApiModel(description = "考题表")
public class ExamSubject implements Serializable{

	private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="subject_id",type=IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String subjectId;

    /**
     * 租户
     */
    @TableField(value="tenant_id")
    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 创建人姓名
     */
    @TableField(value = "create_name")
    @ApiModelProperty(value = "创建人姓名")
    private String createName;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人")
    private String updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    /**
     * 更新人姓名
     */
    @TableField(value = "update_name")
    @ApiModelProperty(value = "更新人姓名")
    private String updateName;

    /**
     * 分类ID
     */
    @TableField(value="type_id")
    @ApiModelProperty(value = "分类")
    private String typeId;

    /**
     * 分类名称
     */
    @TableField(value="type_name")
    @ApiModelProperty(value = "分类名")
    private String typeName;

    /**
     * 试题状态
     */
    @TableField(value="subject_status")
    @ApiModelProperty(value = "考题状态")
    private Integer subjectStatus;

    /**
     * 试题答案关联ID
     */
    @TableField(value="answer_id")
    @ApiModelProperty(value = "试题答案关联ID")
    private String answerId;

    /**
     * 试题题干
     */
    @TableField(value="subject_content")
    @ApiModelProperty(value = "试题题干")
    private String subjectContent;

    /**
     * 父题目ID
     */
    @TableField(value="father_subject")
    @ApiModelProperty(value = "父题目ID")
    private String fatherSubject;

    /**
     * 问卷Id
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "问卷ID")
    private String paperId;


}